﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OngTruyenDan.aspx.cs" Inherits="PresentationLayer_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../JavaScript/CheckImpuValid.js" type="text/javascript"></script>
    <style type="text/css">
        .ui-datepicker { font-size:8pt !important}
        .style1
        {
            border-collapse: collapse;
        }
        .style2
        {
            height: 25px;
            width: 201px;
        }
        .style35
        {
            text-align: left;
        }
        .style36
        {
            width: 88px;
        }
        .style37
        {
            height: 25px;
            width: 88px;
        }
        .style38
        {
            width: 241px;
        }
        .style39
        {
            height: 25px;
            width: 241px;
        }
        .style40
        {
            width: 171px;
        }
        .style41
        {
            height: 25px;
            width: 171px;
        }
        .style42
        {
        }
        .style43
        {
            text-align: left;
            width: 201px;
        }
        .style44
        {
            text-align: center;
        }
        .style45
        {
            text-align: center;
            color: #FF6600;
        }
        </style>
<link type="text/css" href="../Style/jquery-ui-1.8.19.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../JavaScript/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../JavaScript/jquery-ui-1.8.19.custom.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("#txtNgayCNC").datepicker({ dateFormat: 'dd/mm/yy', changeMonth: true,
            changeYear: true
        });
    });
</script>
</head>
<body>
    <form id="frmOngPhanPhoi" runat="server">
<%--    <%!--<script src="../JavaScript/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../JavaScript/jquery-ui.min.js" type="text/javascript"></script>
    <link href="../Style/jquery-ui.css" rel="stylesheet" 
            type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#dialog1").dialog({
                width: 1100,
                height: 600,
                Close: function () {
                    $(this).dialog('close');
                },
                buttons:
                {
                    "Add": function () {
                        var _ObjectID = $("#<%= txtObjectID.ClientID  %>").val();
                        var _maDoanOng = $("#<%= txtMaDoanOng.ClientID  %>").val();
                        var _DMA = $("#<%= txtDMA.ClientID %>").val();
                        var _DMZ = $("#<%=  DListDMZ.ClientID %>").val();
                        var _HuongDongChay = $("#<%= DListHDChay.ClientID %>").val();
                        var _ChieuDai = $('#<%= nChieuDai.ClientID %>').val(); // $("#<%=  DListNamSx.ClientID %>").val();
                        alert(_HuongDongChay);
                        $.ajax({
                            type: 'POST',
                            url: 'OngPhanPhoi.aspx/EdictOngPhanPhoi',
                            // data: '{"name":"' + name + '", "surname":"' + surname + '", "age":"' + age + '", "gt":' + gt + '}',
                            // data: JSON.stringify({ name: "'" + name + "'", surname: "'" + surname + "'", gt: "'" + gt + "'", age: 23 }),DMZ
                            data: JSON.stringify({ objectID: +_ObjectID, maDoanOng: "'" + _maDoanOng + "'", dmz: "'" + _DMZ + "'", dma: "'" + _DMA + "'", huongDongChay: + _HuongDongChay, chieuDai: +_ChieuDai }),
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",
                            success: function (msg) {
                                // alert(msg);
                                if (msg.d) {
                                    alert("Successfully added new item");
                                  
                                }
                            },
                            error: function () {
                                alert("Error! Try again...");
                            }
                        });
                    },
                    "Cancel": function () {
                        $(this).dialog("close");
                    }
                }
            });

            $("#add").click(function (event) {
                event.preventDefault();
                $(".addNew").dialog("open");
            });
        });
</script>--%>
<!--<div id="dialog1" style="display: none">-->
    <div>
    <asp:HiddenField ID="txtObjectID" runat="server" />
            <table class="style1" border="0"  align="center">
                <tr>
                    <td class="style45" colspan="4">
                        <strong style="text-align: center">CẬP NHẬT THÔNG TIN THUỘC TÍNH ỒNG TRUYỀN DẪN</strong></td>
                </tr>
                <tr>
                    <td class="style42">
                        Mã đoạn ống</td>
                    <td class="style36">
                        <asp:TextBox ID="txtMaDoanOng" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Năm sản xuất</td>
                    <td class="style38">
                        <asp:DropDownList ID="DListNamSx" runat="server" Height="28px" Width="133px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Mã khu vực cấp nước (DMA)</td>
                    <td class="style36">
                        <asp:TextBox ID="txtDMA" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Năm lắp đặt</td>
                    <td class="style38">
                        <asp:DropDownList ID="DListNamLD" runat="server" Height="28px" Width="133px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Mã vùng cấp nước (DMZ)</td>
                    <td class="style36">
                        <asp:TextBox ID="txtDMZ" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Độ nhám danh định</td>
                    <td class="style38">
                        <asp:TextBox ID="txtDoNhamDD" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Hướng dòng chảy</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListHDChay" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Độ nhám thực tế</td>
                    <td class="style38">
                        <asp:TextBox ID="txtDoNhamTT" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Chiều dài (m)</td>
                    <td class="style36">
                        <asp:TextBox ID="nChieuDai" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Áp lực hoạt động (Bar)</td>
                    <td class="style38">
                        <asp:TextBox ID="dApLucHD" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Đường kính trong (mm)</td>
                    <td class="style36">
                        <asp:TextBox ID="nDKTrong" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Áp lực thiết kế (Bar)</td>
                    <td class="style38">
                        <asp:TextBox ID="dApLucTK" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Đường kính ngoài (mm)</td>
                    <td class="style36">
                        <asp:TextBox ID="nDKNgoai" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        <font color="black">Mã tuyến đường lắp đặt</font></td>
                    <td class="style38">
                        <asp:TextBox ID="txtMaTuyenDuong" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style43">
                        Kích cở ống (mm)</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListKCOng" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Điểm đầu</td>
                    <td class="style38">
                        <asp:TextBox ID="txtDiemDau" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Vật liệu</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListVatLieu" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Điểm cuối</td>
                    <td class="style38">
                        <asp:TextBox ID="txtDiemCuoi" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Tiêu chuẩn vật liệu</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListTCVatLieu" runat="server" Height="28px" 
                            Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Độ sâu (m)</td>
                    <td class="style38">
                        <asp:TextBox ID="dDoSau" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Nhà sản xuất</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListNhaSX" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Độ dốc</td>
                    <td class="style38">
                        <asp:TextBox ID="dDoDoc" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        Nước sản xuất</td>
                    <td class="style37">
                        <asp:DropDownList ID="DListNuocSX" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style41">
                        Tình trạng sử dụng</td>
                    <td class="style39">
                        <asp:DropDownList ID="DListTTSD" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Số lần xảy ra sự cố khắc phục</td>
                    <td class="style36">
                        <asp:TextBox ID="nSLKPSuCo" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Đơn vị thiết kế</td>
                    <td class="style38">
                        <asp:DropDownList ID="DListDonViTK" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Người cập nhật cuối</td>
                    <td class="style36">
                        <asp:TextBox ID="txtNguoiCNC" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style40">
                        Đơn vị thi công</td>
                    <td class="style39">
                        <asp:DropDownList ID="DListDonViTC" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        Ngày cập nhật cuối</td>
                    <td class="style36">
        
                        <asp:TextBox ID="txtNgayCNC" runat="server" Height="21px" Width="210px" 
                            ReadOnly = "True" BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
            
                    </td>
                    <td class="style40">
                        Đơn vị giám sát</td>
                    <td class="style38">
                        <asp:DropDownList ID="DListDonViGS" runat="server" Height="28px" Width="216px" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style43">
                        Loại nước dẫn trong ống</td>
                    <td class="style36">
                        <asp:DropDownList ID="DListLoaiNuocDan" runat="server" Height="28px" 
                            Width="216px" >
                        </asp:DropDownList>
                    </td>
                    <td class="style40">
                        Mã liên kết hình ảnh</td>
                    <td class="style38">
                        <asp:TextBox ID="txtMaHinhAnh" runat="server" Height="21px" Width="210px" 
                            BorderStyle="Solid" BorderColor="#333300"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style43">
                        Ghi chú</td>
                    <td class="style44" colspan="2">
                        <asp:TextBox ID="txtGhiChu" runat="server" Height="156px" 
                            TextMode="MultiLine" Width="398px" BorderStyle="Solid" 
                            BorderColor="#333300"></asp:TextBox>
                    </td>
                    <td class="style38">
                        <img src="../images/noImage.gif" style="height: 146px; width: 219px"/></td>
                </tr>
                <tr>
                    <td colspan="4" style="text-align: center">
                        <asp:Button ID="btnCapNhat" runat="server" onclick="btnCapNhat_Click" 
                            Text="Cập nhật" style="text-align: center"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnHuyBo" runat="server" 
                            Text="Hủy bỏ" onclick="btnHuyBo_Click" />
                    </td>
                </tr>
                </table>

    </div>

    </form>
</body>
</html>
